

class Fonte{

  PFont maFonte;
  float v_corps;
  String v_mot;

  Fonte(float p_corps, String p_mot){
    v_corps = p_corps;
    v_mot = p_mot;
    maFonte = createFont("data/AGaramondPro-Regular.otf", 5*v_corps-16);
  }

  void ecrit() {
    fill(0,random(50,90));    
    
    textFont(maFonte);
    
    float v_largeur = textWidth(v_mot);
    float x = random(width-v_largeur);
    float y = random(1.5*v_corps,height-1.5*v_corps);
    
    text(v_mot, x, y);
  }
  
}
